<template>
<div class="swipe">
  <el-carousel height="420px" >
    <el-carousel-item v-for="(item,index) in swipe" :key="'swipe'+index">
      <a href="#">
      <img :src="item">
      </a>
    </el-carousel-item>
  </el-carousel>
</div>
</template>

<script>
import Vue from 'vue'
import {Carousel,CarouselItem} from 'element-ui'

Vue.use(Carousel);
Vue.use(CarouselItem);
export default {
  name: "swipe",
  props:{
    swipe:{
      type:Array,
    }
  }
}
</script>

<style scoped>
.swipe{
  margin-bottom: 20px;
}
img{
  height: 100%;
  width: 100%;
}
/deep/ .el-carousel__button{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}
/deep/ .el-carousel__arrow{
  width: 70px;
  height: 70px;
  border-radius: 0;
}
</style>